

** Figure H.7 : Map for exposure measure 

use "$datadir\ewallet\maindata_alldistricts", clear
	keep if time_id == 35
	keep invshare_sd district state 
	duplicates drop
	save "$datadir/temp.dta", replace
	use "$datadir/gis/districts_gisclean", clear
		merge m:1 state district using "$datadir\districts\districts_crosswalk.dta"
		keep if _m == 3
		drop _m
		replace state = state_census2001
		replace district = district_census2001
		drop state_census2011 district_census2011 state_census2001 district_census2001
		replace district = trim(district)
		replace state = trim(state)
		merge m:1 state district using "$datadir/temp.dta"
		drop if _m == 2
		drop _m
		erase "$datadir/temp.dta"

		format invshare_sd %9.2f
		spmap invshare_sd if statecode ~= 35 using "$datadir/gis/district_coord", id(OBJECTID) fcolor(Reds2) osize(none) clmethod(q) clnumber(6) legorder(hilo)  legend(size(vsmall) position(4))
		graph export "$outputdir_fig/Figure_H_7.png", as(png) replace
		
